<script setup lang="ts">
    import { useStore } from './store';
    import TsSample from "@/components/ts-sample/index.vue";

    const store = useStore();

    const  onUpdate = (data:any) =>{
        console.log(data);
    }

    // function test(params:(string | boolean)) {
    //     console.log(typeof params, params)
    // }

    const test = (params:any)=>{
        console.log(typeof params, params)
    }
    // test(4555)
    store.commit('SET_USERNAME', '李四');
    // console.log(store.getters.getName);
    
</script>

<template>
    <router-view></router-view>
    <!-- <TsSample :msg="'你好，vite'" @on-update="onUpdate" @on-delete="onUpdate"></TsSample> -->
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}
</style>
